package com.ysh.domain;

import java.util.List;

public class Classes {

  private long id;     // 主键id
  private String name;    // 班级名称

  private List<Student> students; // 班级中所有学生对象

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public List<Student> getStudents() {
    return students;
  }

  public void setStudents(List<Student> students) {
    this.students = students;
  }

  @Override
  public String toString() {
    return "Classes{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", students=" + students +
            '}';
  }
}
